l = input()
lst = l.split(',')
nn = len(lst)

for i in range(0,nn):
    lst[i] = int(lst[i])    
    
smallest = min(lst)
if smallest < 0:
    plus = 0 - smallest
    for i in range(0,nn):
        lst[i] += plus
        
largest = max(lst)
n = largest + 1
barrel = [0] * n
ans = []
for i in lst:
    barrel[i] += 1

for i in range(0,n):
    if barrel[i] >= 1:
        for j in range(0,barrel[i]):
            ans.append(i)
            
if smallest < 0:
    for i in range(0,nn):
        ans[i] -= plus

print(ans)
